package com.four.mapper;

import com.four.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    //注册
    int insert(User user);

    int insertSelective(User user);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 根据账号和密码查询用户信息
     *
     * @param phoneNumber 账号
     * @param password    密码
     * @return 用户信息
     */
    User selectByNumberAndPass(@Param("phoneNumber") Integer phoneNumber, @Param("password") String password);

}